package com.honour.service.interfaced.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.honour.service.interfaced.ReplyInManager;
import com.system.dao.DaoSupport;
import com.system.util.PageData;

/** 
 * 说明： 回复表
 * 创建人：zhaozhenhua
 * 创建时间：2017-12-09
 * @version
 */
@Service("replyinService")
public class ReplyInService implements ReplyInManager{

	@Resource(name = "daoSupport")
	private DaoSupport dao;
	
	/**新增
	 * @param pd
	 * @throws Exception
	 */
	public void save(PageData pd)throws Exception{
		dao.save("ReplyInMapper.save", pd);
	}
	
	/**删除
	 * @param pd
	 * @throws Exception
	 */
	public void delete(PageData pd)throws Exception{
		dao.delete("ReplyInMapper.delete", pd);
	}
	
	/**根据评论ID获取所有回复者
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	public List<PageData> getCommentReplyListById(PageData pd)throws Exception{
		return (List<PageData>)dao.findForList("ReplyInMapper.getCommentReplyListById", pd);
	}
	
	
}

